/**
 * Created by MYQ on 2017/7/4.
 */
import React from 'react';
import {Platform} from 'react-native';
import { StackNavigator } from 'react-navigation';
import First from './First';
import Main from './Main/Main';
import ChooseCity from  './Home/ChooseCity';
import Login from  './Login';
import BaiduMapView from  './Shop/BaiduMapView';
import BadInstagramCloneApp from  './More/BadInstagramCloneApp';
import ClassificationDetailView from  './Home/ClassificationDetailView';
import GoodDetail from  './Home/GoodDetail';
import MyWebView from  './Home/MyWebView';
const SimpleApp = StackNavigator({
    First:{screen:First},
    Main: {screen: Main},
    ChooseCity:{screen:ChooseCity},
    Login:{screen:Login},
    BaiduMapView: {screen: BaiduMapView},
    BadInstagramCloneApp:{screen:BadInstagramCloneApp},
    ClassificationDetailView:{screen:ClassificationDetailView},
    GoodDetail:{screen:GoodDetail},
    MyWebView:{screen:MyWebView},
},{
    initialRoute:'First',
    navigationOptions: {  // 屏幕导航的默认选项, 也可以在组件内用 static navigationOptions 设置(会覆盖此处的设置)
        cardStack: {
            gesturesEnabled: true
        },
        // heardBackTitle:'返回',
        headerStyle:{
            backgroundColor:'rgba(255,96,0,1.0)',
            height: Platform.OS == 'ios' ? 64 : 44,
        },
        // headerTintColor:'rgba(255,96,0,1.0)',
        // headerTitleStyle:{
        //     color:'white'
        // },
        // title:'asd',
        gesturesEnabled:false,
        // header:null
        headerTintColor:'white'
    },
    mode:'card',
    headerMode: 'screen'
});

export default SimpleApp;